<?php

/**
 * statistiques actions.
 *
 * @package    appcemhti
 * @subpackage statistiques
 * @author     Steve Cancès
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class statistiquesActions extends sfActions
{
    /**
    * Executes index action
    *
    * @param sfRequest $request A request object
    */
    public function executeIndex(sfWebRequest $request)
    {
        $this->nbLot = Doctrine_Core::getTable('Lot')->count();
        $this->nbLotsConfidentiels = Doctrine_Core::getTable('Lot')->getNbLotConfidentiel();
        $this->nbEchantillon = Doctrine_Core::getTable('Echantillon')->count();
        
        $this->nbTraitement = Doctrine_Core::getTable('Traitement')->count();
        $this->typesTraitement = Doctrine_Core::getTable('TypeTraitement')->findAll();
        
        $this->nbMesure = Doctrine_Core::getTable('Mesure')->count();
        $this->nbTraitementParMesure = Doctrine_Core::getTable('Traitement')->getTraitementParMesureCount();
    }
}
